package com.bridgeintelligent.tag.customer.pojo;

import lombok.Data;

import java.io.Serializable;


@Data
public class CCISQueryResult implements Serializable {

    private static final int SUCCESS = 0;

    private static final int ERROR = -1;

    //状态码值
    private int code;
    //审批人ID
    private String message;

    public CCISQueryResult(){};
    //审批人名字
    public static CCISQueryResult ok(){
        CCISQueryResult resp = new CCISQueryResult();
        resp.setCode(SUCCESS);
        resp.setMessage("操作成功");
        return resp;
    }

    public static CCISQueryResult error(String message){
        CCISQueryResult resp = new CCISQueryResult();
        resp.setCode(ERROR);
        resp.setMessage(message);
        return resp;
    }
}